<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>公共错误页面</title>
	<link rel="stylesheet" type="text/css" href="../resources/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../resources/easyui/themes/icon.css">
	<script type="text/javascript" src="../resources/js/jquery.min.js"></script>
	<script type="text/javascript" src="../resources/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../resources/easyui/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
哦，出错了！
<p>
<div id="errorMsg" style="color: red;"></div>
	
</body>

<script type="text/javascript">
	$(function(){
		// // 设置或获取 href 属性中跟在问号后面的部分。
		//var params = window.location.search;
		//var msgValue = GetQueryString("code");
		//alert(msgValue);
		//msgValue = GetQueryString("msg");
		//alert(msgValue);
		var msgValue = GetQueryString("msg");
		if(msgValue!=null && msgValue.length>0){
			$("#errorMsg").text(msgValue);
		}
	});
	
	function GetQueryString(name){
	     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	     var r = window.location.search.substr(1).match(reg);//search,查询？后面的参数，并匹配正则
	     //if(r!=null)return  unescape(r[2]); return null;
	     if(r!=null)return  decodeURI(r[2]); return null;
	}

</script>
</html>